<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><link rel="stylesheet" type="text/css" href="style.css" /><script type="text/javascript" src="highlight.js"></script></head><body><pre><span class="hs-keyword">module</span><span> </span><span class="hs-identifier">GHC.UniqueSubdir</span><span>
</span><span id="line-2"></span><span>  </span><span class="hs-special">(</span><span> </span><span class="annot"><a href="GHC.UniqueSubdir.html#uniqueSubdir"><span class="hs-identifier">uniqueSubdir</span></a></span><span>
</span><span id="line-3"></span><span>  </span><span class="hs-special">)</span><span> </span><span class="hs-keyword">where</span><span>
</span><span id="line-4"></span><span>
</span><span id="line-5"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Prelude.html#"><span class="hs-identifier">Prelude</span></a></span><span> </span><span class="hs-comment">-- See Note [Why do we import Prelude here?]</span><span>
</span><span id="line-6"></span><span>
</span><span id="line-7"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="../../base/src/Data.List.html#"><span class="hs-identifier">Data.List</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="../../base/src/Data.OldList.html#intercalate"><span class="hs-identifier">intercalate</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-8"></span><span>
</span><span id="line-9"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Platform.html"><span class="hs-identifier">GHC.Platform</span></a></span><span>
</span><span id="line-10"></span><span class="hs-keyword">import</span><span> </span><span class="annot"><a href="GHC.Version.html"><span class="hs-identifier">GHC.Version</span></a></span><span> </span><span class="hs-special">(</span><span class="annot"><a href="GHC.Version.html#cProjectVersion"><span class="hs-identifier">cProjectVersion</span></a></span><span class="hs-special">)</span><span>
</span><span id="line-11"></span><span>
</span><span id="line-12"></span><span class="hs-comment">-- | A filepath like @x86_64-linux-7.6.3@ with the platform string to use when</span><span>
</span><span id="line-13"></span><span class="hs-comment">-- constructing platform-version-dependent files that need to co-exist.</span><span>
</span><span id="line-14"></span><span class="hs-comment">--</span><span>
</span><span id="line-15"></span><span class="hs-comment">-- 'ghc-pkg' falls back on the host platform if the settings file is missing,</span><span>
</span><span id="line-16"></span><span class="hs-comment">-- and so needs this since we don't have information about the host platform in</span><span>
</span><span id="line-17"></span><span class="hs-comment">-- as much detail as 'Platform', so we use 'PlatformMini' instead.</span><span>
</span><span id="line-18"></span><span class="annot"><a href="GHC.UniqueSubdir.html#uniqueSubdir"><span class="hs-identifier hs-type">uniqueSubdir</span></a></span><span> </span><span class="hs-glyph">::</span><span> </span><span class="annot"><a href="GHC.Platform.html#PlatformMini"><span class="hs-identifier hs-type">PlatformMini</span></a></span><span> </span><span class="hs-glyph">-&gt;</span><span> </span><span class="annot"><a href="../../base/src/GHC.IO.html#FilePath"><span class="hs-identifier hs-type">FilePath</span></a></span><span>
</span><span id="line-19"></span><span id="uniqueSubdir"><span class="annot"><span class="annottext">uniqueSubdir :: PlatformMini -&gt; FilePath
</span><a href="GHC.UniqueSubdir.html#uniqueSubdir"><span class="hs-identifier hs-var hs-var">uniqueSubdir</span></a></span></span><span> </span><span id="local-6989586621679061130"><span class="annot"><span class="annottext">PlatformMini
</span><a href="#local-6989586621679061130"><span class="hs-identifier hs-var">archOs</span></a></span></span><span> </span><span class="hs-glyph">=</span><span> </span><span class="annot"><span class="annottext">FilePath -&gt; [FilePath] -&gt; FilePath
forall a. [a] -&gt; [[a]] -&gt; [a]
</span><a href="../../base/src/Data.OldList.html#intercalate"><span class="hs-identifier hs-var">intercalate</span></a></span><span> </span><span class="annot"><span class="annottext">FilePath
</span><span class="hs-string">&quot;-&quot;</span></span><span>
</span><span id="line-20"></span><span>  </span><span class="hs-special">[</span><span> </span><span class="annot"><span class="annottext">Arch -&gt; FilePath
</span><a href="GHC.Platform.html#stringEncodeArch"><span class="hs-identifier hs-var">stringEncodeArch</span></a></span><span> </span><span class="annot"><span class="annottext">(Arch -&gt; FilePath) -&gt; Arch -&gt; FilePath
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">PlatformMini -&gt; Arch
</span><a href="GHC.Platform.html#platformMini_arch"><span class="hs-identifier hs-var hs-var">platformMini_arch</span></a></span><span> </span><span class="annot"><span class="annottext">PlatformMini
</span><a href="#local-6989586621679061130"><span class="hs-identifier hs-var">archOs</span></a></span><span>
</span><span id="line-21"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">OS -&gt; FilePath
</span><a href="GHC.Platform.html#stringEncodeOS"><span class="hs-identifier hs-var">stringEncodeOS</span></a></span><span> </span><span class="annot"><span class="annottext">(OS -&gt; FilePath) -&gt; OS -&gt; FilePath
forall a b. (a -&gt; b) -&gt; a -&gt; b
</span><a href="../../base/src/GHC.Base.html#%24"><span class="hs-operator hs-var">$</span></a></span><span> </span><span class="annot"><span class="annottext">PlatformMini -&gt; OS
</span><a href="GHC.Platform.html#platformMini_os"><span class="hs-identifier hs-var hs-var">platformMini_os</span></a></span><span> </span><span class="annot"><span class="annottext">PlatformMini
</span><a href="#local-6989586621679061130"><span class="hs-identifier hs-var">archOs</span></a></span><span>
</span><span id="line-22"></span><span>  </span><span class="hs-special">,</span><span> </span><span class="annot"><span class="annottext">FilePath
</span><a href="GHC.Version.html#cProjectVersion"><span class="hs-identifier hs-var">cProjectVersion</span></a></span><span>
</span><span id="line-23"></span><span>  </span><span class="hs-special">]</span><span>
</span><span id="line-24"></span><span>  </span><span class="hs-comment">-- NB: This functionality is reimplemented in Cabal, so if you</span><span>
</span><span id="line-25"></span><span>  </span><span class="hs-comment">-- change it, be sure to update Cabal.</span><span>
</span><span id="line-26"></span><span>  </span><span class="hs-comment">-- TODO make Cabal use this now that it is in ghc-boot.</span><span>
</span><span id="line-27"></span></pre></body></html>